package com.lanyou.esb.cook.proxy.common;

/**
 * 系统响应码
 * 
 * @author Davey.wu
 */
public final class SystemResCode {
	// 请求成功响应码start=========================================
	public static final String MSG_REQUEST_SECCESS = "服务请求成功";
	public static final String CODE_REQUEST_SECCESS = "0000000";


	// 请求成功响应码end=========================================

	// 资源请求失败或安全相关异常错误码start=========================================

	// 认证start+++++++++++++++++
	public static final String MSG_AUTH_FAILURE = "认证失败";
	public static final String CODE_AUTH_FAILURE = "00040101";

	public static final String MSG_AUTHINFO_EMPTY = "认证信息缺失";
	public static final String CODE_AUTHINFO_EMPTY = "00040102";

	public static final String MSG_AUTHINFO_FORMATE_ERROR = "认证信息格式错误";
	public static final String CODE_AUTHINFO_FORMATE_ERROR = "00040103";

	public static final String MSG_AUTH_TYPE_NOT_SUPPORT = "未知的认证类型";
	public static final String CODE_AUTH_TYPE_NOT_SUPPORT = "00040104";
	// 认证end+++++++++++++++++

	// 令牌start+++++++++++++++++
	public static final String MSG_TOKEN_NOT_FOUND = "令牌缺失";
	public static final String CODE_TOKEN_NOT_FOUND = "00040201";

	public static final String MSG_APPLYDATE_EMPTY = "令牌申请日期缺失";
	public static final String CODE_APPLYDATE_EMPTY = "00040202";

	public static final String MSG_TOKEN_DISABLE = "令牌不可用";
	public static final String CODE_TOKEN_DISABLE = "00040203";
	
	public static final String MSG_TOKEN_INFO_ILLEGAL = "无法根据用户提供的信息获取令牌";
	public static final String CODE_TOKEN_INFO_ILLEGAL = "00040204";
	// 令牌end+++++++++++++++++

	// 访问令牌start+++++++++++++++++
	public static final String MSG_ACCESSTOKEN_EMPTY = "访问令牌缺失";
	public static final String CODE_ACCESSTOKEN_EMPTY = "00040301";

	public static final String MSG_ACCESSTOKEN_EXPIRESIN_EMPTY = "访问令牌有效期缺失";
	public static final String CODE_ACCESSTOKEN_EXPIRESIN_EMPTY = "00040302";

	public static final String MSG_ACCESSTOKEN_INVALID = "访问令牌错误";
	public static final String CODE_ACCESSTOKEN_INVALID = "00040303";	

	public static final String MSG_ACCESSTOKEN_EXPIRED = "访问令牌已过期";
	public static final String CODE_ACCESSTOKEN_EXPIRED = "00040304";

	public static final String MSG_AUTHINFO_NOT_ENOUGH = "申请访问令牌信息不完整";
	public static final String CODE_AUTHINFO_NOT_ENOUGH = "00040305";

	public static final String MSG_OVER_MAX_APPLYTIMES = "超过访问令牌每日申请次数上限";
	public static final String CODE_OVER_MAX_APPLYTIMES = "00040306";
	
	public static final String MSG_ACCESSTOKEN_UPDATE_ERROR = "更新访问令牌失败";
	public static final String CODE_ACCESSTOKEN_UPDATE_ERROR = "00040307";
	// 访问令牌end+++++++++++++++++

	// 密钥start+++++++++++++++++
	public static final String MSG_APPLYKEY_EMPTY = "密钥缺失";
	public static final String CODE_APPLYKEY_EMPTY = "00040401";

	public static final String MSG_APPLYKEY_EXPIRESIN_EMPTY = "密钥有效期缺失";
	public static final String CODE_APPLYKEY_EXPIRESIN_EMPTY = "00040402";

	public static final String MSG_APPLYKEY_EXPIRED = "密钥已过期";
	public static final String CODE_APPLYKEY_EXPIRED = "00040403";

	public static final String MSG_APPLYKEY_INVALID = "密钥错误";
	public static final String CODE_APPLYKEY_INVALID = "00040404";

	public static final String MSG_APPLYKEY_DISABLE = "密钥未生效";
	public static final String CODE_APPLYKEY_DISABLE = "00040405";
	// 密钥end+++++++++++++++++

	// 系统start+++++++++++++++++
	public static final String MSG_PUB_SYSTEMCODE_EMPTY = "服务发布方系统编码缺失";
	public static final String CODE_PUB_SYSTEMCODE_EMPTY = "00040501";

	public static final String MSG_CALL_SYSTEM_EMPTY = "服务调用方系统编码缺失";
	public static final String CODE_CALL_SYSTEM_EMPTY = "00040502";

	public static final String MSG_UNKNOW_SYSTEM = "未知的服务发布方系统";
	public static final String CODE_UNKNOW_SYSTEM = "00040503";

	public static final String MSG_UNKNOW_CALL_SYSTEM = "未知的服务调用方系统";
	public static final String CODE_UNKNOW_CALL_SYSTEM = "00040504";

	public static final String MSG_PUB_SYSTEM_DISABLE = "服务发布方系统不可用";
	public static final String CODE_PUB_SYSTEM_DISABLE = "00040505";

	public static final String MSG_CALL_SYSTEM_DISABLE = "服务调用方系统不可用";
	public static final String CODE_CALL_SYSTEM_DISABLE = "00040506";
	// 系统end+++++++++++++++++

	// 接口start+++++++++++++++++
	public static final String MSG_INTERFACECODE_EMPTY = "接口编码缺失";
	public static final String CODE_INTERFACECODE_EMPTY = "00040601";

	public static final String MSG_INTERFACEVERSION_EMPTY = "接口版本号缺失";
	public static final String CODE_INTERFACEVERSION_EMPTY = "00040602";

	public static final String MSG_UNKNOW_INTERFACE = "未知的接口";
	public static final String CODE_UNKNOW_INTERFACE = "00040603";

	public static final String MSG_UNKNOW_INTERFACE_TYPE = "未知的接口类型";
	public static final String CODE_UNKNOW_INTERFACE_TYPE = "00040604";

	public static final String MSG_OVER_MAX_ACC_LIMIT = "超过最大请求次数";
	public static final String CODE_OVER_MAX_ACC_LIMIT = "00040605";

	public static final String MSG_ISOLATION = "接口隔离";
	public static final String CODE_ISOLATION = "00040606";

	public static final String MSG_UNAUDITED = "接口未审核";
	public static final String CODE_UNAUDITED = "00040607";

	public static final String MSG_REJECT = "接口未驳回";
	public static final String CODE_REJECT = "00040608";

	public static final String MSG_IF_DISABLE = "接口不可用";
	public static final String CODE_IF_DISABLE = "00040609";

	public static final String MSG_IF_UNUSE = "接口停用";
	public static final String CODE_IF_UNUSE = "00040610";

	// 接口end+++++++++++++++++

	// 其它start+++++++++++++++++
	public static final String MSG_NOT_ACCESABLE_IP = "该IP没有访问权限";
	public static final String CODE_NOT_ACCESABLE_IP = "00040901";
	// 其它end+++++++++++++++++

	// 资源请求失败或安全相关异常错误码end=========================================

	// 系统内部错误响应码start=======================================
	public static final String MSG_REQUEST_TIMEOUT = "请求超时";
	public static final String CODE_REQUEST_TIMEOUT = "00050001";

	public static final String MSG_HTTP_HOST_CONN_EXCE = "连接不到远程主机";
	public static final String CODE_HTTP_HOST_CONN_EXCE = "00050002";

	public static final String MSG_SOCKET_EXCE = "连接套接字中断";
	public static final String CODE_SOCKET_EXCE = "00050003";
	// 系统内部错误响应码end=======================================

	// 其它类型错误响应码start=======================================
	public static final String MSG_OTHER_EXCEPTION = "未知异常";
	public static final String CODE_OTHER_EXCEPTION = "00060000";
	// 其它类型错误响应码end=======================================
	

}
